package com.example.orderservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.orderservice.pojo.po.OrderCommentPO;
import com.example.orderservice.pojo.vo.OrderCommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/4/12 14:02
 */
@Mapper
public interface OrderCommentMapper extends BaseMapper<OrderCommentPO> {
    String getAvgScore(String hotelId);

    Page<OrderCommentVO> getPage(@Param("page") Page page, @Param("vo") OrderCommentVO vo);
}
